package appapi.service;

import appapi.Request.ParkCarPageReq;
import appapi.Vo.brider.*;
import appapi.common.ResponseBean;
import appapi.entity.basic.UserInfo;
import appapi.entity.bridge.CarInfo;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.stereotype.Repository;

/**
 * @author hlm
 * @date
 * @description: 闸机车辆
 */
@Repository
public interface ParkCarService extends IService<CarInfo> {

    /**
     * 分页查询闸机车辆列表
     *
     * @return
     */
    IPage<CarVO> getParkCarByPage(ParkCarPageReq req);

    /**
     * 注册
     *
     * @return
     */
    void insertCar(AddCar addCar , UserInfo userInfo);

    /**
     * 编辑
     *
     * @return
     */
    ResponseBean editCar(EditCar editCar , UserInfo userInfo);

    /**
     * 删除
     *
     * @return
     */
    void delCar(Long carId);

    /**
     * 详情
     *
     * @return
     */
    ResponseBean getParkModel(Long carId);

}
